var CryptoJS = require("crypto-js");

function encrypt_password(user,pswd) {
    // 将用户名在右侧用0补足24位后再给密码加密
    var d = CryptoJS.enc.Utf8.parse(user),
        s = CryptoJS.TripleDES.encrypt(pswd,d,{'mode':CryptoJS.mode.ECB,'padding':CryptoJS.pad.Pkcs7});
    return s.toString();
}

console.log(encrypt_password('wenkuzzz@baidu.com0', 'qazwsx123'));
